/**
 * 与用户相关的后端接口调用
 */
import instance from '@/utils/http'
import { loginURL } from '@/api/url'


/**
 * 用户登录

export function login(username, password) {
    return instance.post(loginURL, {
        username: username,
        password: password
    })
}
 */
export function login(data) {
    return instance({
        url: loginURL,
        method: 'post',
        data: data
    })
}